<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jquery/>
<link type="text/css" rel="stylesheet" href="__ROOT__/admin/tpl/public/style/{$hd.session.style}.css"/>
<css file="__ROOT__/admin/tpl/public/css/common.css"/>
<title>Insert title here</title>

</head>
<body>
<div class="comShow">
		<h1><a href="javascript:void(0)">rbac配置详细</a></h1>
		<table class='table4'>
                <thead>
                    <tr class='title'>
                        <th width=10%>
            用户组ID               
                        </th>
						<th >
                            用户组名称                
                        </th>
						<th width=10%>
          节点ID               
                        </th>
						<th width=10%>
                            节点名
                        </th>
                        <th  width=20%>
                            节点说明
                        </th>
						<th>
			节点等级				
						</th>
                        <th  width=15% style='border-right:none;'>
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody>
                	<form id="delForm" action="__CONTROL__/ajax_del" method="post">
  			
						<?php						
						foreach($result as $v){
						
							echo "<tr>
                            <td class='cl'>
                          	 	".$v['rid']."
                            </td>
                            <td class='textLeft'>
                                ".$v['rname']."
                            </td>
							<td >
                              ".$v['nid']."
                            </td>
							<td>
                                ".$v['name']."
                            </td>
							<td>
                               ".$v['title']."
                            </td>
 							<td>";
							
                            	switch ($v['level']){
									case 1:
									echo "<span style='color:#da7421;'>应用</span>";
									break;
									case 2:
									echo " <span style='color:#009d9b;'>控制器</span>";
									break;
									case 3:
									echo "<span style='color:#68cac9;'>方法</span>";
									break;
								
								}
	
						echo "</td>
                            <td style='border-right:none;'>
                             <a href='__CONTROL__'/del/id/'>删除</a>
                            </td>
                        </tr>";				
						}						
						?>
					<!--	
						
                    <list from="$result" name="$v">
                        <tr>
                            <td class='cl'>
                          	 	{$v.rid}
                            </td>
                            <td class='textLeft'>
                                {$v.rname}
                            </td>
							<td >
                              {$v.nid}
                            </td>
							<td>
                                {$v.name}
                            </td>
							<td>
                               {$v.title}
                            </td>
 							<td>
                             <switch value="{$v.level}">
                                 <case value="1">
                                 		<span style='color:#da7421;'>应用</span>     
                                 </case>
                                 <case value ="2">
                                   		   <span style='color:#009d9b;'>控制器</span>  
                                 </case>
                                 <case value ="3">
                                     	 <span style='color:#68cac9;'>方法</span>  
                                 </case>
                                 <break/>
                             </switch>
	
							</td>
                            <td style='border-right:none;'>
                                <a href="__CONTROL__/del/id/">删除</a>
                            </td>
                        </tr>
        			</list>
					-->
                </tbody>
            </table>	
</div>
</body>
</html>